gsk_rounded_rect_init_copy: Don't normalize
authorAlexander Larsson <alexl@redhat.com>
Wed, 11 Jan 2017 08:23:37 +0000 (09:23 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 11 Jan 2017 08:23:37 +0000 (09:23 +0100)
This was showing up quite high on the profiles, and there is
no real reason for copy to normalize, as the source is a
GskRoundedRect which should be normalized already unless
you did something very strange (and then you should have normalized
manually).

gsk/gskroundedrect.c

index 03f987e964685207ed375538dc3fc143b6a3c520..c381e479111807f9c6f352912538bf628211f18e 100644 (file)
@@ -118,8 +118,8 @@ gsk_rounded_rect_init (GskRoundedRect        *self,
  *
  * Initializes @self using the given @src rectangle.
  *
- * This function will implicitly normalize the #GskRoundedRect
- * before returning.
+ * This function will not normalize the #GskRoundedRect, so
+ * make sure the source is normalized.
  *
  * Returns: (transfer none): the initialized rectangle
  *
@@ -131,8 +131,6 @@ gsk_rounded_rect_init_copy (GskRoundedRect       *self,
 {
   *self = *src;
 
-  gsk_rounded_rect_normalize_in_place (self);
-
   return self;
 }